﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="purchasecheck_check.aspx.cs" Inherits="WebInvoicingsys.system.purchase.purchasecheck_check" %>
<%@ Register src="~/basecontrol/business/uc_from_product.ascx" tagname="uc_from_product" tagprefix="uc3" %>
<%@ Register src="~/basecontrol/purchase/uc_from_purchaseplan.ascx" tagname="uc_from_purchaseplan" tagprefix="uc1" %>
<%@ Register src="~/basecontrol/business/uc_from_dates.ascx" tagname="uc_from_dates" tagprefix="uc2" %>
<%@ Register src="~/basecontrol/uc_from_supplier.ascx" tagname="uc_from_supplier" tagprefix="uc4" %>
<%@ Register src="~/basecontrol/uc_from_settle.ascx" tagname="uc_from_settle" tagprefix="uc5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="styles" runat="server">

<style type="text/css">
    
    .input_data_main
    {
        height:30px; vertical-align:middle; line-height:30px; float:left; font-size:10px;
    }

    .input_data_style
    {
        height:30px; vertical-align:middle; line-height:30px; float:left; margin-left:5px;
    }
    

</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="alert_text" runat="server">
    <%=alert_msg%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="main" runat="server">
    <div class="form-group" style="margin-left:30px">
    
        <div class="row-fluid" style="margin-top:10px">
            <div class="input-group">
                <table>
                    <tr>
                        <td align="right">
                            <span class="input-group-addon">计划单号:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_pspid" runat="server" class="form-control" placeholder="计划单号" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">开单日期:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_billdate" runat="server" class="form-control" placeholder="开单日期" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">到货时间:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_arrivaldate" runat="server" class="form-control" placeholder="到货时间" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">供应商:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_suppliername" runat="server" class="form-control" placeholder="供应商" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">联系电话:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_phone" runat="server" class="form-control" placeholder="联系电话" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">传真:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_fax" runat="server" class="form-control" placeholder="传真" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">结算方式:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_settlename" runat="server" class="form-control" placeholder="结算方式" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">数期:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_period" runat="server" class="form-control" placeholder="数期" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">开单人员:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_username" runat="server" class="form-control" placeholder="开单人员" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">制单时间:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_sysdate" runat="server" class="form-control" placeholder="制单时间" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>

                    <tr>
                        <td align="right">
                            <span class="input-group-addon">备注:</span>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txt_remark" runat="server" class="form-control" placeholder="备注" CssClass="input_style" Font-Size="10px"  ReadOnly="true"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
        </div>

        <div class="row-fluid">
            <table>
                <tr>
                    <td>
                        <div class="input_data_main">
                            <div class="input_data_style">
                                <asp:Button class="btn btn-xs btn-success" id="btnCheck" runat="server" Text="审批" onclick="btnCheck_Click"/>
                            </div>
                            <div class="input_data_style">
                                <asp:Button class="btn btn-xs btn-success" id="btnSave" runat="server" Text="保存备注" onclick="btnSave_Click" />
                            </div>
                            <div class="input_data_style">
                                <asp:TextBox ID="txt_checkremark" runat="server" class="form-control" placeholder="审批备注" CssClass="input_style" Font-Size="10px"  MaxLength="256"></asp:TextBox>
                            </div>
                            <div class="input_data_style">
                                <asp:Button class="btn btn-xs btn-default" id="btnReturn" runat="server" Text="返回" onclick="btnReturn_Click" />
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </div>

       <hr align="center" color="#987cb9" size="2" />
        
        <div class="row-fluid" style="margin-top:10px; vertical-align:middle">
                <div class="block-content collapse in">
                <div class="span12">
                    <table class="table table-bordered">
                    <thead style="background-color:Silver">
	                    <tr>
		                    <th>序号</th>
		                    <th>货品条码</th>
                            <th>货品全称</th>
                            <th>货品简称</th>
                            <th>货品类别</th>
                            <th>货品单位</th>
                            <th>货品规格</th>
                            <th>堆放方式</th>
                            <th>防护方式</th>
                            <th>数量</th>
                            <th>单价</th>
                            <th>金额</th>
                            <th>备注</th>
	                    </tr>
                    </thead>
                    <tbody>
                    <asp:Repeater ID="rplist" runat="server">
                    <ItemTemplate>
                    <tr>
		                <td><%#Eval("dgvID")%></td>
		                <td><%#Eval("productcode")%></td>
                        <td><%#Eval("productname")%></td>
                        <td><%#Eval("productshortname")%></td>
                        <td><%#Eval("goodsclassname")%></td>
                        <td><%#Eval("goodsunitname")%></td>
                        <td><%#Eval("goodsspecname")%></td>
                        <td><%#Eval("stackname")%></td>
                        <td><%#Eval("guardname")%></td>
                        <td><%#Eval("qty")%></td>
                        <td><%#Eval("in_price")%></td>
                        <td><%#Eval("in_money")%></td>
                        <td><%#Eval("remark")%></td>
	                </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <tr>
                            <td>
                                合计
                            </td>
                            <td colspan="8">
                                &nbsp;
                            </td>
                            <td>
                                <%=Total_qty%>
                            </td>
                            <td>
                                <%=Total_in_price%>
                            </td>
                            <td>
                                <%=Total_in_money%>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </FooterTemplate>
                    </asp:Repeater>
                    </tbody>
                    </table>
                </div>
            </div>
            </div>
        </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="scripts" runat="server">
</asp:Content>
